<?php
class admin_report extends Admin_Controller
{
	public $menu_id = 8;
	public function __construct()
	{
		parent::__construct();			
	}
	
	public function report_1()
	{
		$menu_id = $this->menu_id;
		$data['menu_id'] = $menu_id;		
		$menu_name = GetMenuProperty($menu_id,'title');
		$data['urlpage']="admin_section";
		if(is_login()){
			if(permission($menu_id, 'canview')=='')redirect('admin');						
			$this->template->build('report_1',$data);
		}
		else{
			
			redirect('admin');	
		}
	}
	
	public function report_2(){
		$menu_id = $this->menu_id;
		$data['menu_id'] = $menu_id;		
		$menu_name = GetMenuProperty($menu_id,'title');
		$data['urlpage']="admin_section";
		if(is_login()){
			if(permission($menu_id, 'canview')=='')redirect('admin');						
			$this->template->build('report_2',$data);
		}
		else{
			
			redirect('admin');	
		}
	}
}
?>